package com.miyuan.wm.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @ClassName PageRequestVo
 * @Description 查询条件基础请求参数类
 */
@Data
@ApiModel(value = "查询条件基础请求参数类", description = "查询条件基础请求参数类")
public class PageRequestVo implements Serializable {

    @ApiModelProperty(value = "模糊查询字段", notes = "模糊查询字段")
    private String search;

    @ApiModelProperty(value = "当前页码")
    @Min(value = 1, message = "页码数不合法")
    private Integer pageNumber = 1;

    @ApiModelProperty(value = "每页多少")
    @Min(value = 1, message = "每页条数不合法")
    private Integer pageSize = 25;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

}
